package org.thoughtworks.selenium.flex.codec;

import java.util.HashMap;
import java.util.Map;

public class EventFactory {
    private static final Map<String, Event> EVENT_MAP = new HashMap<String, Event>();

    static {
        for (Event event : Event.values())
            EVENT_MAP.put(event.value(), event);
    }

    public static Event get(String event) {
        return EVENT_MAP.get(event);
    }
}
